package com.example.administrator.ygddriver.into.login.driverjoin.small;

import android.content.Intent;
import android.view.View;
import android.widget.Button;

import com.example.administrator.ygddriver.R;
import com.example.administrator.ygddriver.base.BaseActivity;
import com.example.administrator.ygddriver.into.login.driverjoin.small.smallmessage.SmallMessageActivity;
import com.example.administrator.ygddriver.tool.SimpleToolbar;

public class SmallJoinActivity extends BaseActivity implements View.OnClickListener {
    private SimpleToolbar simpleToolbar;
    private Button mNextBtn;
    private String c_drivertype;

    @Override
    public int initLayout() {
        return R.layout.activity_small_join;
    }

    @Override
    public void initView() {
        simpleToolbar = findViewById(R.id.activity_small_join_stb);
        mNextBtn = findViewById(R.id.activity_small_join_next_btn);
        mNextBtn.setOnClickListener(this);
    }

    @Override
    public void initDate() {
        setSimpleToolbar();
        c_drivertype = getIntent().getStringExtra("c_drivertype");

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.activity_small_join_next_btn:
                Intent intent = new Intent(this, SmallMessageActivity.class);
                intent.putExtra("c_drivertype", c_drivertype);
                startActivity(intent);
                break;

        }
    }

    private void setSimpleToolbar() {
        simpleToolbar.setMainTitle("加入车主");
        simpleToolbar.setMainTitleColor("#000000");
        simpleToolbar.setBackIv(R.mipmap.u126);
        simpleToolbar.setToolColor("#ffffff");
        simpleToolbar.setBackIvClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
